﻿@{
    ViewBag.Title = "Index";
}
@using PeopleSource.Entities


@(Html.Telerik().Grid<ResumeType>().Name("ResumeType").DataKeys(keys => { keys.Add(item => item.ID); })
    .ToolBar(toolBar => toolBar.Insert())
        .DataBinding(dataBinding =>
        {
            dataBinding.Ajax()
            .Select("_SelectIndex", "ResumeType")
            .Insert("_InsertAjaxEditing", "ResumeType")
            .Update("_SaveAjaxEditing", "ResumeType")
            .Delete("_DeleteAjaxEditing", "ResumeType");
        })
            .Columns(columns =>
            {
                columns.Bound(item => item.ResumeTypeName);
                columns.Command(commands =>
                {
                    commands.Edit();
                    //commands.Delete();
                }).Title("操作").Width(200);
            }).Resizable(r => r.Columns(true))
            .Editable(editing => editing.Mode(GridEditMode.PopUp))
                .Pageable(item => item.Style(GridPagerStyles.Status).PageSize(50).PageOnScroll(true)).Scrollable(s => s.Height(600)).Scrollable(c => c.Height(600))
    .Resizable(resizing => resizing.Columns(true))
            .Sortable()
        )


